package com.project.bean;

import java.util.List;

/**
 * 房间实体类
 */
public class RoomBean {
    /**宿舍id*/
    private int roomId;
    /**宿舍地址*/
    private String address;
    /**宿舍可容纳人数*/
    private int maxPerson;
    /**宿舍已住人数*/
    private int currentPerson;
    /**宿舍状态*/
    private String state = "正常";
    /**宿舍类型*/
    private String type;
    /**所住学生的集合*/
    private List<StudentBean> studentList;

    public RoomBean() {
    }

    public RoomBean(String address, int maxPerson, int currentPerson,String type, List<StudentBean> studentList) {
        this.address = address;
        this.maxPerson = maxPerson;
        this.currentPerson = currentPerson;
        this.type = type;
        this.studentList = studentList;
    }

    public RoomBean(int roomId) {
        this.roomId = roomId;
    }

    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getMaxPerson() {
        return maxPerson;
    }

    public void setMaxPerson(int maxPerson) {
        this.maxPerson = maxPerson;
    }

    public int getCurrentPerson() {
        return currentPerson;
    }

    public void setCurrentPerson(int currentPerson) {
        this.currentPerson = currentPerson;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<StudentBean> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<StudentBean> studentList) {
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return "RoomBean{" +
                "roomId=" + roomId +
                ", address='" + address + '\'' +
                ", maxPerson=" + maxPerson +
                ", currentPerson=" + currentPerson +
                ", state='" + state + '\'' +
                ", type='" + type + '\'' +
                ", studentList=" + studentList +
                "}\n";
    }
}
